package com.yuandengta.yomall.order.constant;

/**
 * 订单校验 {@link OrderCheckEnum}
 *
 * @author Kevin
 * @email: 178676392@qq.com
 */
public enum OrderCheckEnum {
    /**
     * 成功
     */
    SUCCESS(0, "无异常"),
    /**
     * 验证码异常
     */
    TOKEN_EXCEPTION(1,"订单信息过期"),
    /**
     * 订单价格异常
     */
    PRICE_EXCEPTION(2,"订单价格异常"),
    /**
     * 商品库存异常
     */
    STOCK_EXCEPTION(3, "商品库存异常");

    private Integer code;
    private String msg;

    OrderCheckEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
